package com.b2bpsssm.simulate;/**
 * @author JunYu
 * @create 2022-08-15--10:45
 */

import com.b2bpsssm.pojo.Commodity;
import com.b2bpsssm.pojo.PrintConfig;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: B2BPSSMSystem
 *
 * @description: 生成商品
 *
 * @author: JunYu
 *
 * @create: 2022-08-15 10:45
 **/

public class GenerateCommodity {
    public static List<Commodity> generateCommodityListNoPage(){
        List<Commodity> list = new ArrayList<>();
        Commodity commodity = new Commodity();
        commodity.setCom_Id("1");
        commodity.setCom_Name("测试数据");
        for (int i=0;i<40;i++)
        {
            list.add(commodity);
        }
        return list;
    }
    public static List<Commodity> generateCommodityList(int pageSize){
        List<Commodity> list = new ArrayList<>();
        Commodity commodity = new Commodity();
        commodity.setCom_Id("1");
        commodity.setCom_Name("测试数据");
        for (int i=0;i<pageSize;i++)
        {
            list.add(commodity);
        }
        return list;
    }
//    public static Commodity generat
}
